<?php
class header extends Controller{
	
	function index(){
		$this->id = 'header';
		foreach(get_object_vars($this->document) as $key => $value) {
			$this->data[$key] = $value;
		}
     	if(!$this->user->isLogged()){
			$this->data['logged'] = '';
		}
		else{
			$this->data['logged'] = $this->user->getFirstName();
		}
		$this->template="header.html";
		$this->render();
	}
	
}